<template>
  <div class="user-list">

    <!-- 用户表格数据 -->
    <el-table :data="getRoleListData" border style="width: 100%;
    margin-top: 20px;">
      <el-table-column prop="id" label="角色编号" width="400"></el-table-column>
      <el-table-column prop="role_name" label="角色名称" width="450"></el-table-column>
      <!-- <el-table-column prop="routes" label="角色由来" width="80"></el-table-column> -->
      <el-table-column prop="" label="操作" width="250">
        <template>
          <el-button type="primary">编辑</el-button>
          <el-button type="danger">删除</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
import { mapMutations, mapGetters } from 'vuex'
export default {
  data () {
    return {

    }
  },
  computed: {
    ...mapGetters('role',[
      'getRoleListData'
    ])
  },
  created () {
    console.log(this.getRoleListData)
  }
}
</script>

<style>

</style>